import { defRecommendHttp } from '/@/utils/http/axios';

enum Api {
  showRules = '/admin/rules',
}

/**
 * 获取后端推理规则的接口
 */
export function getRulesApi() {
  return defRecommendHttp.get<string>(
    {
      url: Api.showRules,
    },
    {
      errorMessageMode: 'modal',
    },
  );
}
